import Vue from 'vue'
import App from './App.vue'
import router from './router'
// import axios from 'axios'

import ElementUI from 'element-ui'; // 2.1引入结构
import 'element-ui/lib/theme-chalk/index.css'; // 2.2引入样式
//引入 封装好的请求
import {postRequest} from "@/utils/request";
import {putRequest} from "@/utils/request";
import {getRequest} from "@/utils/request";
import {deleteRequest} from "@/utils/request";

import Calendar from 'vue-mobile-calendar'

import $ from 'jquery'
Vue.prototype.$ = $

import MintUI from 'mint-ui'
import 'mint-ui/lib/style.css'
Vue.use(MintUI)


Vue.use(ElementUI).use(Calendar);

Vue.config.productionTip = false

//插件形式使用请求
Vue.prototype.postRequest = postRequest;
Vue.prototype.putRequest = putRequest;
Vue.prototype.getRequest = getRequest;
Vue.prototype.deleteRequest = deleteRequest;


new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
